automatic Alias Domain bugs

In my templates i have ..

Automatically create alias domain: Create under [domain.com]
Suffix for alias domain: first part of domain

however when i add a new domain like "testing.com" i get

testing.com
testing.com.domain.com

The expected result would be testing.domain.com. Also when deleting a domain which has an automatic alias the user/group is not deleted.

Status: 
Closed (fixed)