Addressing Christina's review comments
- Added missing Python tests
- Added some extra JavaScript tests
- Removed unused code
- Updated doc strings