testing use of rest-client in one_shot