testing resource associations