Add tern tests.