Added test for macd