complete test, which seems to work perfectly without modification to the
code