update tests for rest refractoring