fix unit test after emr-api refactoring