unit tests for custom methods using Restangular.addElementTransformer()