httpetrified decorator for unit testing