Fixed bad coding practice in test.