Add test cases for alignment directive

Refactor directive to set alignment when changed
Merge pull request #39 from Rise-Vision/chore/alignment-e2e-tests-angular

Add test cases for alignment directive