slight modifications to some rest test functions