Added failure tests

Needed to use the OHHTTPStubs utility.
Feels kind of messy to be using it, but it works.

Signed-off-by: Ippoippo <ippoippo_software@ippoippo.net>