Add test on stack setting attribute extending & bugfix