cart tests: clean code and output