swift testing of notifications