Added test protocol and API methods for custom delegation and completion block