correct the test code and add EM for faye methods