some memory testing methods