put together the java-based tests
reindent and improve displayed message