added unit tests and made fixes for .factory, .geom
added test for PrimitiveArrays