fixed problem, but added a new test that fails