Added some tests and write links to file