added test case for custom fields