Make sparkcontext stay alive when doing unittests
Fix bug that take wrong default interpreter