added testing file for distributed datasets, added some thread awareness and testing examples for QContext