[JENKINS-14964] add test for REST API