New test for meta template testing, updated matrix header to now be cleaner and function faster.