core.util.formatp add test for complex fields