Make make test actually fail the build.

Also improve the existing read_file tests.