BSON tests