added test to check heap sort works properly