removed console.logs and first try at test fixing