Chp7 - unit tests