Some changes to improve code coverage of stack tester