Tweaks testuite to create spark contxt lazily to prevent contxt leaks.