helper method to run tests with more debugging.