Rewrite the test cases for host tracker module.