Fixed several bugs in the Java makefile, related to unit tests. Also prettified some output.