This commit fixes aggregate regression test.
This commit fixes alter_generic regression test.
This commit fixes namespace regression.   Reviewed by Abbas Butt.