fixing unit test for bad data