Fix reference field

- domain:get-field-value return () for element(domain:model)
- Unit tests included
Change log level to debug