Updated the junit deps
Added a logback dependency for testing
Added a unit test for some of the polling logic