implement log to console and fix browser tests