Fix rest adapter failing tests