Cleaned up fetchResponse tests and logic.
Added credential parsing func.