Completed code for testing for multiple replicates in Experiments.