remove invalid keys from tests