solve problems with tests