add unit tests for page tracker.