some test code for spark development