Added test for nested blocks