First of all i will explain my goal :
I have an app divided into several modules. In this case I just want to test my ui-module.
I have some calls to the back-end there and i want to simulate the response or just change some models' values. I think you can not change the value of a model, so i am trying to simulate the back-end.

I have a model 'documents' that when i press a search button, it get data from the back-end in other module.
Example: <http://localhost:8080/search-module/API/search>
I want to test that without the backend.

I have tried with "httpbackend" but i can not get it going. Also i have tried "protractor-http-mock" and neither 

Here is all my code for now:
[![enter image description here](https://i.stack.imgur.com/Ftc3e.png)](https://i.stack.imgur.com/Ftc3e.png)
[![enter image description here](https://i.stack.imgur.com/IHQX7.png)](https://i.stack.imgur.com/IHQX7.png)

I am starting with cucumber and mocking so forgive me if this question is so general.