Added continuity tests for rebasing. Also added some unit tests for various checks that are now modified to take account of baselines.