Fixing test by sorting results