Extract a TestHelpers mixin containing test helper methods