RF + TST: Increased sensitivity in emd.h, tests for the EMD calculation.