add GenericWriter test case