Tests and examples for libbson