adding a test file for the Factory method

Im QA afterall