Sets up factories and creates association tests