Tests for ParseStreamManagement class methods

I added some tests, and fixed problems I found with it.