Refactor to use templates and remove hard coding in tests