Some fixes to the PLib E2E Test App

- Fixed table initialization code for query data
- Added additional validation for User-Agent header