edited the rest class as well as the restTest.