Modified testLinkKarmaCost function in tests.py