Add tern tests + start managing model completion.