improve pretty printing in tests