Tests PostType class.
Fix #3 and add some metabox tests.