Unit tests fixes for page and type elements.