Testing out $resource