add test for legend w/ expand mode