Template matcher (incomplete) / tests