remove console.log and improved test