Assert that setting an invalid date raises an exception