Fix for bug 968952
 - Fixing application alias validation regex
Fix for bug 969165
Fixing alias tests