Refactored letter block creation and added tests