Fixed invalid test

Will make the same change on the core. This is a temp fix