Improve test cases for hasOne association