tests for add_field. ref #21