modified test script for adding 2nd endpoint bug #7658