fixed some stuff about tests, and various typos