more tests and linting.

relating to #2