Refactor tests and create methods for inserting data to be reused in the tests.
Merge branch 'master' of https://github.com/varh1i/tm
Fix error, was replacing the response object when getting data from rest service