Add testcase and update JavaCC grammer.

Signed-off-by: Yusuke TAKEI <sync.outerphase@gmail.com>