Escape special characters in test method name