Added some tests for a possible bug in ObjectID handling