Fix API calls for integration tests
Remove old end-points.
Rewriting tests used old end-points