add test to cover removing navigation items via JS