Added tests and imenu syntax fix for '_'

Added test to check for the correct navigation for variables which
contain underscores.
Also added '_' to the imenu regexp.