Full code coverage for the magento writer