tests for nested blocks