Adding ability to emit event

I'm not sure this test has any value. You're testing $.emit here not how it's implemented in the controller. I think you may want to test the onGeolocation event handler calls $.emit with the event name when it's called.