added first tests for map based factory methods