removed toValueArray & replaced with toTitleArray for test assertion, & shortened comment