added functionality to test script to demonstrate features