Spark Integration: fix failing spark unit test

@chtyim : I tried with classunloading as false but the tests fails. With true they seem like passing for now.

Please review. Thanks.