1. Fixed ngMock module definition so that it doesn't break non-test code.
2. Extended existing tests.