sort and modify  tests