Refactor test templates and simplify conditions in all templates.
Some code style cleanup in quickstart command.