Update test-history.js

Added tests for history stack fix