fixed subtypes write test