Changing console side effects to return values instead, removed test