add test and update readme