added tests, fixed problem with Validator(Mixed)

Added test.java with some tests of the translator, and fixed a bug with
translating PPPPPPAPAPAAP.