Added support for throw statements and added test file.