spark tests