added rest test