Fix unit test in DeviceStatsTestCase.test_filter()