Fixed Typos and added error message test