Modified test for log api endpoint