Added test for sorting, although the bulk of it needs to be filled in