Added tests for authorization and capture.