Fix typo in getting line number

The closing parenthesis was in the wrong place resulting in the default
value not getting set. This adds a test case.
Merge pull request #174 from myint/test

Fix typo in getting line number