finally found flawed logic and a test that fails