added tests for extendTopDown