Added testPolicy method

Jira issue: WP-932