Test object name method creation