Tested tree stack queue