fix test to work with async policy check

Jira-issue: WP-956
Merge pull request #15 from aldafu/WP-956-fix-rpc-test

fix test to work with async policy check