refactored some tests. started work on links_all