Chapter 3, test for checking equality