add tests and link redirection