[OHAI-518] remove *.static.cloud-ips.com

Fixes issues with Pull Request #215
- fixes tests
- moves `require "resolve"` to top of file
I wasn't sure whether or not to put that into multiple tests, but I didn't want to repeat myself. Thank you for showing me how to make it DRY.

I just pushed a commit that addresses this.