prepare for rest test