move the Period tests in test_period.py and add assertRaises tests for comparisons