added tx prepare test
fix to previous