add tests for sos conversion functions