abstracting the get method for the tests