Spark Integration: fix failing spark unit test

@chtyim : I tried without setting classunloading with just the memory but the tests fails. With enable they seems to pass now. 

Please review. Thanks.