Added more tests for usage poller helper method processEvents.  Fixed bugs that arose because of these tests.
Added more tests for the usage poller helper method processEvents.