changed test to hang and check for errors