Add JS test for slide rendering.

Can we use sinon stubs for this. I don't want us to get into the habit of manually stubbing methods.