Fix prepare test