Migrated obsolete method calls and cleaned ContentTypeServiceTests.cs