Updated test for Java project