Added a test to make sure the BSON cast works