Fixed PMap write tests, starting to remove buffer growing.