Added a simple scala test for checking that the PatternTagger works as it should.
Moved TypedToken class into PatternTagger class as a private class since it shouldn't be used elsewhere.