Add helper method to reduce boiler plate testing code