Joint government pitfalls offer warning to SNP and Greens