Create a test object

This borrows a bunch of code from the proper Swift in order
to create a 100% compatible object. We intend to read and parse
the object in oserver later.