Remove console.log and fix "is required" test