pester state and ther parts updated

most of the tests now pass. poluting global scope test needs revision.
tag filter not implemented