Create associations and test