Test init command EINVALID_DATA.
Update test chdir logic.