After I loaded the project from root, I added a module from ui-test manually from project structure and succeeded. But I could not open project structure window again and crashed after several tries. Also if I reopen IntelliJ with the project, the root project is gone and the content root will be ui-test instead of root.