Fix rest test.