added tests for all crud methods in Rest