Adding unit test for associate.