little refactoring in tests
more tests for 'nestingLevel'