TEST: Updated version of test to catch invalid parameters.