Test logger_level_to_error.
Merge pull request #16 from serathius/tests

Test logger_level_to_error.