Adds test for prepare prevtx