implement test skipping and expected failures

patch by myself #1034053
4 files changed