refactored login dialog view specs for karma mocha specs
refactored util specs to karma mocha specs