Allow testing of internal functions and variables
Empty memory cache on memory warning
Fix conflicts
Merge pull request #18 from hpique/feature/memory-cache/memory-warning

Clear memory cache on memory warning. Closes #3.