Java test programs