Changed Java dependency to test