These helper methods should not be in the test class. They need factoring out into a helper class