add tests for ch. 12 exercises