Added gaurd against > 128 mb allocations and added a test for it