testing the factories