Updated unit test to check for invalid notices