Added tests for optional input field