remove old stuff from pe type.
more tests, factories and stubbing.