Added foreign_key check bypass for tests.

Sometimes MySQL and Django fail to cooperate when populating fixtures.
This fix temporarily bypasses foreign key checks when setting up
databases during tests.
test for the sed