Modified testCreateNewLink fuction in tests.py