corrects name of test class
adds two new array helper methods, for grouping and key sorting