add tests for containers
give genwriter a better name