Add tests for dynamic fields