Fixing assertion in tests. Fixing output of sshm.py.