fix README.md
add test
change throw error to return callback(error)