make test for shapefile encoding independent from db state