Test refactoring to fit new architecture

This also stands as a demo for other plugins
Merge pull request #378 from typesafehub/wip/warry-test-refactoring

Test refactoring to fit new architecture