A bug in a unit test function has been fixed.