added 'position' getter on stack manager
added several tests to ensure that the position is current after stack has changed