Changed the test for existing factors