Chapter 7 Excercise - tests and erb refactoring