Refactor rest resource test
Removed unused code