Fix star routing - fixes #1

- Make charSpec check for undefined rather than falsiness, as StarSegment charSpec is defined with an empty string
- Added a test