button redirection and unit and e2e tests