small cleanups
Added first tests for NameAnalysis, add more!