refactor Java tests and README