Delete types ns in favour of schema. Add unit tests for schema.