write test case for Chap3 Q1