test_ex1 1.1

added more test cases and defined a run_test() function to run all test