Update tests and stop inactive users being alerted

Inactive users will no longer be notified. This was a one line fix at the top of `alert.py`

There are now five additional tests added to the test.py including one to check the fix above. This should stop it from being an issue in the future.