test/malloc: add bad parameter tests for realloc