Corrected typos in expected and exception