wrote tests for associations