Update pyd2l_test.py

adding 'with open(os.path.join(os.path.dirname(__file__)' to pickle opening