Added a way to remove metrics in tests and generate pending and notification id from milliseconds