tests for prob7 - 11