test buy()