Added tests for the GET methods of rest api.