added factory and test for AidTypeSerializer