AMBARI-5787. Unit tests for step controllers (7) with refactor. (onechiporenko)