[SyW] added constructor from word
updated testing