Fix various integration tests

Fair point! It avoids the test impl knowing about the underling entity impl, for trying to get hold of the pid etc. Code is same as in `AbstractWebAppFixtureIntegrationTest` (with the ugly duplication!).