(#3217) - remove query() from test.basics.js

@glynnbird Here's my alternative suggestion for #3217; I think it's fine to use `allDocs()` instead of `query()`.