mooarr test cases. Fixed bug in word building function