Added $timeout.flush(); to beforeEach for the poller model unit test