tests/pathslicing: add a test for check() that ensure it does work
we only had tests for non-valid checks.