Fix rest test