Move test into tests directory
Replace astropy raises with pytest.raises
Merge pull request #21 from mwcraig/fix-tests

Standardize handling of tests in which exceptions are raised