problem 3 tests and problem solution