test cases for buy and sell all updated