fix test and remove console.log