Add test for log method
Add test for hasLevel