Fixed few typos in lib and test