Add test for variance exception