javarepl: improve test by running a short program