Add Unit Tests
Fix Bugs discovered by tests
Add protractor test setup