fixed prepare test