adding getTSLag() and accompanying test.