fixed some stuff from test_ogrsf