Adding factory methods tests