add test for sort support
test flags
test array type