Add specs for Database initialization-hook error cases.