Added template for password change. #5893
Also adds tests for templates.