fix parseEscapeChar end of string error
add tests for true, false, null, and string