add a test to check graceful failure