Added nested variance tests.
Merge remote-tracking branch 'upstream/develop' into VarianceTests