Fixde test cases and added test runner.