refactor utfgrid api and add test