Added closure around tests to get them running correctly, added tests to run counting sort's sort(array,maxValue) function correctly