fix testng in share amp and tidy up libraries