complete unit tests after ComplexType refactor