Added testRequest method, used by api-policy

Jira issue: WP-1105