Added test cases for hw 03.