My testing code based on the book javafortesters