adjust dir and test code