added nested map test to optimization tests