Fix orm entity manager configuration in Commands
Changed the PR a bit + added tests