removed the constant re-logging of data in tests and found the logging bug with stdout and sterr