Refactor duplicate test code into a run_test subroutine.
Merge pull request #599 from SaberUK/master+configure-tests

Refactor duplicate test code into a run_test subroutine.