make testChunks fork with PHP backend

i've added a simple if statement that checks if the request is GET and if so checks if the requested Chunk exists or not and responses 200 or 404.
i needed this to be able to resume using PHP as backend.