Adding cmd 'java' tests