Added Some test coverage for the Rest API