Add tests to check ExerciseTemplated's behavior

It seems now to cover the main scenarios. Tell me if I missed some of them or if we need to implement some other features.