added tests for rest-api parsing