Rewritten integration test with new restit API