add test cases for 1 and 3