Add function to test if a page is a file page

Change-Id: I7b8065f6d7b2df29a2230ac81a6bf52b8eb794f2