fixed validation of numerical parameters and moved exception throw into the set methods
added numeric parameter validation test