Plugin code and simple test