Added tests for string length.
Migrated custom fields definition form.