added test for crash; it doesn't crash for now, but instead exposes a memory leak