Fixed minor issues with pid controller and built csv batch processing tests