Re-add memory freeing test, although it is not very meaningful