test for mapping type in controller