test $resource based service