add unit test in watch task