formatting updates in test_stacks
partial implementation of block merge