Add tests for product view

This commit adds some tests of the Product view code.

This is a precursor to a future merge proposal that will refactor the existing Product view code. I'd like to get a solid test suite in ensure that any future refactoring doesn't break things.