Added test cases

Added test cases for hg-poller