Model-map linking works! Also refactored some utility functions for
testing into test/util.py.