Add new method for creating initial template questions to avoid consistency issue
Add test
refactor code
Merge pull request #2376 from TEAMMATES/Issue2375

java.lang.AssertionError: Session disappeared. #2375