Add tests for controller usage, fix bug where controllers aren't closing mongo sessions