Add test case for input position tracking