add 10 test cases for ex4