Tests associations