update writer test case