* Fixed bug that caused memory_limit=-1 to lead to 'not enough memory' error * Added Unit Test to Memory Limit Check