Extra Java unit test added

in pursuit of nonexistent bug