For Issue #16: migrated tests to astropy testing framework

This addresses #16