update readme and add some tests