Strictly speaking this is not a true deduplication; the test output will be slightly different (due to inconsistent print statements) but I think this is close enough.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>