Added end-to-end test for valid/invalid requests to datacollector