Update test script to accomodate multiple applications