Wrote test cases for 12 (close #12)