completed some test cases