Move testing code to separate class.
Fix issue with checking response code.

RestClient returns the response code as an integer rather than
a string (like Net::HTTP does).
Update CHANGELOG for 0.0.8.