Adds Pi/Sigma type encoding test/example