completed mental test functionality