Method close added to VariantQueryBuilder interface, and tests for MongoQueryBuilder