Fixed a couple small logic errors in the test.