Add test for EMR step config, fix bug