Fixed double print bug in test