Adding tests and replacing code in the readme to reference a template