Added test cases for optional parameters and ensure that they allow null values