test map behavior