Added tests to test error which occurs after two operators in a row.
Added functionality to output error message after enterting two operators in a row.