Added first test, fixed a bug and added angular-mocks