bson: test failure conditions