added a few tests for the factory class