Pivot reporting framework

Can't remember the reason for the todo - but you're right - those tests could be better. I'll do something decent when we do the SVD.