added test for sort context feature