reduced complexity of testInterleaveFunctions so tests don't take forever.