tests: Fix tests with sets to print sorted set.