max test data is now matrix rather than row