Remove test logs from the code. fixes #7848