Fix serveral tests pass regardless of whether data is valid or not