suggested answer to 'Tests' exercise