Add tests for 100% coverage of contexts_controller
100% coverage for memories controller