fixed error in plugin code

added initial example test