Finalize the field API with test cases