Optimize test cases through pytest parameterization @ pytest.mark.parametrize to improve code quality and efficiency