Fix and add tests for ss. Fix formatting.