Test refactoring to fit new architecture

This also stands as a demo for other plugins