Fixes invalid unit test.