Add tests for required input fields.

Change-Id: Icc689e8db756dc332cc7afaa456fe6c10a19b74e