Added more tests
Now gives CompilationException on var declarations using nonexisting typenames