Refactor httpretty out of medley server tests