Add test with multilayer stacks.