Section 24. If the shire town where a case shall be tried has been designated under section eighty-two of chapter two hundred and thirty-one, no costs shall be allowed for sittings held in any other town unless the action is actually tried in such other town by agreement of the parties.