Encapsulated the global regression test factory into a Singleton
class.