Fix #3 Add tests

Remove console.log