Fixed failing test and removed console.log.