fixed unit tests, removed console.logs