Added spark tests