ngDocCode: more query tests; clearer use of Chai expectations