Improve tern completion tests.