Add unit tests for page repository