Extra Java unit test added

In pursuit of nonexistent bug