Add stack unit tests in unit-tests.js