Refactor contribution observer spec