Unit test now logs in properly