Added check_free_memory test