convert from $firebase to $http
unit testing todo service using $http
using $resource to work with firebase
unit test for firebase $resource service