map and functions test