added tests for emd command line stuff.