add logging similar to mocha
Update tests for logger