Add tern completion query tests.