You say "invalid or missing page numbers", but I only see tests for numbers (nothing non-numeric) and no missing page numbers.