minor tidy up on test setup class

fix test class
CRM-13067 add membership import test
CRM-13067 preliminary cleanup - reduce lines of code
CRM-13067 code tidy up - remove repetitive code
CRM-13067 code tidy up - move import specific function to import class
CRM-13067 tidy up import function by using exception try catch
CRM-13067 whitespace for addition of try catch.
I put the indentation in a separate commit to keep the other commit clean
CRM-13067 e-notice fix
Merge pull request #1180 from eileenmcnaughton/CRM-13067

CRM-13067 - preliminary code tidy up