adding filter to java spark test