added factoring tests