renamed test helper method