Sorry about this trouble. This is a bug in iRedAdmin-Pro-LDAP-1.8.1 (and earlier versions), it was fixed in the development version.
I can sen you the development edition if you like, please mail "support@ iredmail.org" to get one.
What you need to do to fix this issue is removing alias domain "test.com" first, then re-add it.