attempt 1 with httpretty