added specs for querying documents by attributes