added tests and a small fix for semantic analyser
Merge branch 'master' into parser