Add test logging as a temporary hack.