Fix use current dir path in test case issue