all tests pass but the test code is a nightmare