Added tests on optional param to controller