test for bson file contained in a directory.