fixed java compilation error, experimenting with unit test