TST: provide tests for memory_cycles
related to #4491

provides an assert_memory_is_clean to test a function for leaking memory

provides a test that the current series does not leak memory
and properly cleans up

tests that an index generally populates the engine mapping (but not always
e.g. asof)

not really that useful
