added tests outside of head and tail position
sort simple sets