improve test coverage on rest models
Merge pull request #3369 from lnader/improve_test_coverage

Merged by openshift-bot