add generated watch task
fix wrong cwd after test