fixing character lenght, adding tests