added specs for memory leaks