Updated product tests

Added tests for purchase and cancel methods