Solving errors in tests.