adding tests for sliceParameterArray and createExceptionClass methods.