add Chapter 1 and Chapter 2 Test Code