add rest test coverage