Add dual mode JS tests

This PR adds 403 tests for the notebook's new dual mode.  

## how it works
After each action, the states of the notebook cells, code mirror instances, notebook, and keyboard manager are all verified as the expected results.

closes #5290