Fix bug for working with ContentTypes in tests