Implements a DELETE API endpoint for stopping a graph monitoring process and refactors the graph API tests