add fieldinfo method to get config for a field
add testfile for fieldinfo