removed junk
added 4 integration tests
format
added response code log at debug level