Add test for smart page title method