Updated remaining semantic analysis and error handling tests to use improved semantic messages
Improved code flow for tests that expect an exception