Add webcl-harness self-tests
Refactoring. Skip tests if preconditions fail.