added karma
fixup
added angular-mocks for tests
added unit tests for UI