refactored actions_template and added some tests