Add some test
Correct a bug about the writer conf