Fixed build_charge_response type checking to allow mocking