Improved testing and added linter

How to lint: cake lint