Wrote segment menu test.

Test makes sure empty segment packages are handled gracefully.