Fix memory test