M + handling _result != list to count()
M Fixed incorrect referencing in list generators
+ Added first pass of pytest tests