cleanup output and tests