Added tests for new logger.js