replace link
add some tests