Enhancing test command with --regex and --clean options. Adding proper branch to pull from when updating templates.