retrofitting the remaining memory tests to use the library modules