statefull rest test