Fix test by allowing invalid data