Fixed tests

Tests were failing on threads import because the same thread was being
imported twice. This triggered an exception in the validation because
the property imported_at already existed the second time around.

Updated all import test cases to use numbers instead of strings for
legacy ids.