refactored tests slightly

Make individual test files a little more module like by carving some
fixture infrastructure (bcon_eq_bson) and main out into a separate
library that gets linked in.