add test and update plugin