Add more testings, add httpretty to test request library