added link scripts, fixed test case