Fixed option has no name

- Added test for an option with no name specified
- Added code to test for names and create error in case of missing names