Added exports.txt generation
Added more unit tests