Added unittest for listed data
Fixed listed data

render now takes a scopes argument, instead of having data and scopes
mushed together in one big unhappy family.