Add SPT unit tests

These tests should probably have been included in PR #37.