figuring out why this test fails when it shouldn't