Implemented fix for a test failure that shows up on Firefox in some situtions