Change int() to Int()
Add test for log level enforcement