bug fixed
sort message errors
new test added
bug fixed