Change error for functions that return undefined + add test
Change error for functions that return undefined