add tests and link