tests for product api