Reformat file
setUp and tearDown made re-usable and doctests use fake environment
Added contact tests