Adding unit tests for type manager