run all test cases with the correct working dir

[skip ci]