Port the last remaining test file from JS to Python.
Port the last remaining test file from JS to Python.