fix tear down foreign key constraint violation exception tests