Update template to deal with test and staging.