Unit test for CandlestickFactory