Added a method to DRY up test code