Extra Java unit test added

in pursuit of a nonexistent bug