almost finish hw3 test cases