WIP fixing Poller tests for Jest
WIP fixing Poller tests for Jest

Fixed all the test except for the 2 that use Promises.

Mocked Ajax requests using superagent mock.

Sage/carbon,Sage/carbon,Sage/carbon