Set correct path for target dir in unit test.