Updated DataContext unit tests.

- Fixed issue with foreign keys.
- Fixed on delete cascade behavior.