added test for missing innermost /LI
corrected unit test for #623