Fixed trackbacks for variables, added tests.