added test 7 and 8. all tests passed except for test8