Testing for python and js complete and pass

Fixed javascript tests so they all pass, and wrote python tests that all
pass.