added integration testing for sort and unsort