Added invalid JSON tests
Added httpretty