Tested map function via complier