Fast test loading, mate.py refactor main