Entities.destoryAll(app): move unmanage(app) call

- do before managementContext.terminate, to avoid error
- got away with it (usually?) because AbstractApplication.stop
  unmanages itself.
Tidy pom.xml scope "test"

- use "test" rather than "tests" for scope
EntityTypeTest: add tearDown