added an rest api integration test