Update tests for Rest API