AMBARI-7097. Add unit tests for service controller and view. (onechiporenko)