test fixes, and added JRE version to user-agent header sent during API requests