[bug 1030905] Add product/version tests

This adds product/version tests to the tests for the GET API. It also
tweaks some of the existing code and breaks up the monolithic test_basic
testcase.