Added new test cases, some small changes to compiler