Bugfixing MockApplication implementation