added testcases
fixed static links and simple variable translations