Copy from incubator-spark

Still have to remove the dataset tests from the unit tests
Remove the data tests