Close more open connections in tests

- Found some Eve app not assigned to self.app. They weren't cleaned up.
- In media tests, the media element needs to be removed due to the
  GridFS keeping a connection there.
Again bad boy, removed unused import (flake8)
Merge branch 'graffic-tests-mongodb-connections' into develop