Add test case for fractional number lexing.
Fix runtime errors with if statements.
Add more information to expectConsume error message.