added simple tests for tpt functions