Add test for hasOne association validation