Updated to V2 of API

Updated to API v2
Updated test script

updated test script to use new V2 version.