rest test fix