Feature (unit tests) : added unit tests for aliases controller

Feature (unit tests) : added unit tests for aliases code

unit tests added to test aliases controller

```
grunt test
Running "karma:unit" (karma) task

... snip ....

PhantomJS 1.9.7 (Mac OS X): Executed 38 of 38 SUCCESS (0.185 secs / 0.072 secs)
```