Fix error in test suite

The error resulted in most tests being run twice.