Adding tests and fixing empty arrays from site map index sites