Added test and check for end() when there is no stack or nothing on the stack to...