implemented pytest of count_evens method