added sunpy.tests.main function for calling tests

This fixes #583.