update tests and add _bsontype