fix a small bug in TestPlugin