added tests, asynclogger and small fix in log.e