test object keys in sorted order