DAR-136: allow to mock $app methods
DAR-136: fixing unit tests