add tests for logger, remove console.logs from master_client spec, improve logger