Improve code tests for Writer Container