Merge pull request #345 from deadok22/name-resolution-tests

Name resolution tests for small IDEs
fixed #337

improved auto indentation for some cases