test_log passes! Had to use vfprintf instead of fprintf for printf-wrapping to work