updated tests, removed console.logs