Mathematical and empirical development of a test of memory for clinical and research use