add unittest for counting sort