Improved read invalid test.