Here is a sentence where you need the second form: "The murderer was believed to have been an English teacher before he became a hired assassin." It's a similar requirement for that of the past perfect. You're looking at two events/states in the past. "It was believed that the murderer had been an English teacher before becoming a hired assassin."
- For Teachers