Fixed sx.py unit tests, #554