Moves ParameterFunctionException; more tests

Moves ParameterFunctionException to parameter_functions module

Adds try/except to ParameterFunctionValidator.validate so that a ParameterFunctionException is raised

Adds additional tests for ParameterFunctionValidator