improve test coverage on rest models