preparation to write rest tests