Fixed name requirements in tests when creating objects