Fixing tests and removing excessive bytes printed by search