ema test functions pass