add reference.getSortField method
add test for getChoices method