Refactor addon template code

* Refactor tests
* Fix headers
* Use single quotes on strings
Set the bar higher on code analysis for the addon template