Abstracted DefaultOutOfMemoryHandler memory info accessor logic. Added a few tests.