updated the test program to use the new scope-system.