update tests
sort numbers
use utility in tests