tobenamed returns a cursor instead of a dictionary
adds basic_stats test cases