Fix Python test failure
JS style and updated tests