Add metrics filter tests for clear and flush intervals