Added tests for custom field model