Bugfixing invalid controller initialization from path info + add PHPUnit tests