add test and sell and buy