Add tests for the new oct encode/decode functions.
Update Primitive default construction test.