implemented config logic and added test
changed magento-root in test
Merge branch 'feature/magento-root-dir-change' into develop