added tests package (*.mcz) and fixed a number of them, see PortingNotes.md