[WIP] unit tests for product writer