add toBeMock and reimplement toBeEhpty jasmine helper
minor refactoring