Wrote some test cases.