Fixed compile error in java lib tests.