Implement test case for TypeaheadCtrl