fix kget next_state code and start epmd in ensemble_only_test