Added test method for Purchase