Add functional test for optional param