Added public_trial upgrade step.
Added public_trial tests.