Fixed a bug in the grammar which cased an exception when a } was encounter ending a statement.
Implemented a test to check if statements are generated correctly