Added mocked httpBackend to resource test. Fixed typeahead. Fixed serverside.