add a test to verify correct exception when database is down.