[Managed] Test cleanup for WP8.1 Cases

Fix bug with cleanup logic
Adjust test for periods to be more realistic, avoid the inherent issue
with just three period ids in WP81