lib/java: fix store unit tests
lib/cpp: regenerate protocol test struct