Java grammar test added