Fixed a silly snafu that would cause the tests to hang occasionally