updated README with Java, generalize Test to use as template