Changed register-test to do a flush immediately