CH-1306: Only add identity type param if we have the identity param, also adding simpletest test of config
CH-1306: Adding a qunit test for sending the captureIdentity