Removing invalid assertions from tests