ref #8056 - Unit tests for to_param