write a test for typahead