Fix and add Mach0 tests
fix 'osx mach0 entrypoint' test
fix other mach0 tests