Updated With lang test

Besides other test functions, added a main() function to run within context.