Comment: Added created field
Comment: Removed misleading error message in test
Ticket: Return E_INVALID_DATA for foreign key errors