430 - cache common functions for tests

Tests now take 21s instead of 76s, reclaiming recent losses and more.