Add tests for all but link_list and fix bug

There was a bug in the next_sort method, added tests for almost all methods