Add sample and doc for testParams sharing feature