Add some console.log #4, fix a bug with tests functions