fixed references test
fixed test
test for resourceToModel fields