AMBARI-6889. Add unittests for BEFORE-ANY hook (aonishuk)