add test for method .letters_count_till
moved method from rake task to module