Updated wge_test to use temp table.