Add validation test to ws sample

Fixes gh-481