added unit tests for more domain logic in chapter 5