Convert tests/test_pages.py to use Harness & TestClient.

Relates to #540.