Please print "FAILED\n"; after each bson_decode() so we know which entry didn't throw exception if this test ever fails.

Also.. I also see failure cases here.. Can you add one success check, just to sanitycheck the bson you are creating is correct :)