For Issue #16: migrated tests to astropy testing framework