tests: use bson for various test abstractions.