logging to console when testing