test(hasOne): expand hasOne getter with transaction unit test