Added test cases for malloc. Unbelievable, no error found!